import Vue from 'vue'
import store from '../store'
import {
  toast,
  success,
  loading,
  modal,
  alert,
  confirm,
  actionSheet
} from '../utils/modal'

Vue.prototype.$toast = toast
Vue.prototype.$success = success
Vue.prototype.$loading = loading
Vue.prototype.$modal = modal
Vue.prototype.$alert = alert
Vue.prototype.$confirm = confirm
Vue.prototype.$actionSheet = actionSheet

store.$toast = toast
store.$success = success
store.$loading = loading
store.$modal = modal
store.$alert = alert
store.$confirm = confirm
store.$actionSheet = actionSheet
